﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Templates_VideoHolder_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

<acms:StyleSheet ID="StyleSheet3" Path="~/fancybox/jquery.fancybox-1.3.4.css" Media="Screen" runat="server" />


<acms:JavascriptFile ID="JavascriptFile1" Path="~/fancybox/jquery.fancybox-1.3.4.pack.js" runat="server" />

 <script type="text/javascript" src="http://www.projekktor.com/js/projekktor.min.js"></script> <!-- Load Projekktor -->
    <script type="text/javascript" src="http://www.projekktor.com/js/projekktor.share.js"></script> <!-- Load Projekktor -->

<acms:JavascriptFile ID="JavascriptFile2" Path="~/Scripts/swfobject.js" runat="server" />
    <!--SWF OBJECT-->
    <script type="text/javascript">
        var hasFlash = false;
        var flashvars = {SettingsFilePath: "<%= GetFlashXML() %>"};
        var params = {
            menu: "false",
            scale: "noScale",
            allowFullscreen: "true",
            allowScriptAccess: "always",
            bgcolor: "#FFFFFF",
            wmode: "transparent"
        };
        var attributes = {
            id: "Systems"
        };
        swfobject.embedSWF("<%= GetFlash() %>", "flashContainer", "100%", "100%", "9.0.0", "../../Flash/expressInstall.swf", flashvars, params, attributes, outputStatus);

        function outputStatus(e) {
            //alert(e.success);
            if (e.success == true) {
                $('body').removeClass('noFlash');
                //alert(e.success);
                
                //alert("success" + e.success)
            }
            
            else {
                $("#systemFlashPanels").height(322);
                $("#flashContainer").css('display', 'none');
                //alert(e.success);
                initjScrollPane();
                $("a.videoTitle").replaceWith(function() {
                    return "<span>" + this.innerHTML + "</span >";
                });

            $('a.videoTitle').click(function(e) {
                e.preventDefault();
            });

            
                
            
             }
        }
</script>
   
   
   
        
        
   <%-- <acms:JavascriptFile ID="jquery" Path="~/Scripts/jquery.tools.flashembed.min.js" runat="server" />--%>
   
   <%--<acms:StyleSheet ID="StyleSheet1" runat="server" Path="~/Css/thickbox.css" /> 
   <acms:JavascriptFile ID="JavascriptFile1" runat="server" Path="~/Scripts/thickbox-compressed.js" />--%>
   <script type="text/javascript">
       $(document).ready(function() {
            var jsReady = false;
            pageInit()

        });
//        function launchtb(p) {
//            pageUrl = "" + p + "?&keepThis=true&TB_iframe=true&height=520&width=880"
//            tb_show("", pageUrl)
//        }
        
        function toggleVideoItemInfo(i){
            $('#videoInfoHolder .item').hide();
            $('#videoInfoHolder .item').eq(i).toggle();
        }
        
        function isReady() {
             return jsReady;
         }
     
     
     function pageInit() {
         jsReady = true;
         //alert("JavaScript is ready.");
     }
     function thisMovie(movieName) {
         if (navigator.appName.indexOf("Microsoft") != -1) {
             return window[movieName];
         } else {
             return document[movieName];
         }
     }
     function sendToActionScript(value) {
         thisMovie("ExternalInterfaceExample").sendToActionScript(value);
     }
     function sendToJavaScript(value) {
         document.forms["form1"].output.value += "ActionScript says: " + value + "\n";
     }
 </script>
 
 <script type="text/javascript">
     $(document).ready(function() {


     $("a.overlay").fancybox({
             'width': 640,
             'height': 360,
             'padding':0,
             'autoScale': false,
             'titleShow':false,
             'transitionIn': 'none',
             'transitionOut': 'none',
             'type': 'iframe'
         });
     });
</script>


 
 <script type="text/javascript">
    //<![CDATA[
     function removeSwfObject(sVidoUrl) {
         //alert("removeSwfObject");
         swfobject.removeSWF("VideoPlayer");
         $('#VideoPlayerWrapper').prepend("<div id='VideoPlayer'></div>");

     } 
     
     //var videoUrl;

     //videoUrl = "http://localhost/Schiebel/AcmsFile/693/500/0/2009-03-09_CAMCOPTER_Maritime.flv";

//     if (videoUrl != null) {
//         addFlashVideo(videoUrl);
//     } else {
//         alert(videoUrl)
//     }
     function addFlashVideoSend(sVidoUrl) {
         $("a.overlay").eq(sVidoUrl).click(); 
         
      }
     function addFlashVideo(sVidoUrl) {
         //alert("addFlashVideo" + sVidoUrl);
        var ctl00_ContentPlaceHolder1_flash_ctl00_flashvars = {};
        var ctl00_ContentPlaceHolder1_flash_ctl00_params = {};
        var ctl00_ContentPlaceHolder1_flash_ctl00_atts = {};
        ctl00_ContentPlaceHolder1_flash_ctl00_params.wmode = "transparent";
        //ctl00_ContentPlaceHolder1_flash_ctl00_params.bgcolor = "#336699";
       
        ctl00_ContentPlaceHolder1_flash_ctl00_params.allowFullScreen = "true";
                
        ctl00_ContentPlaceHolder1_flash_ctl00_flashvars.videoUrl = sVidoUrl;
        ctl00_ContentPlaceHolder1_flash_ctl00_flashvars.videoSkinUrlStr = "http://www.schiebel.net/Flash/custom.swf";
        var oDate = new Date();
        swfUrl = "http://www.schiebel.net/Flash/FlashVideo.swf?=rv" + oDate.getMilliseconds();
        //alert(swfUrl);
        //alert(swfUrl);
        swfobject.embedSWF(
	        swfUrl,
	        "VideoPlayer",
	        "640px", "360px", "10.0.0.0", false,
	        ctl00_ContentPlaceHolder1_flash_ctl00_flashvars,
	        ctl00_ContentPlaceHolder1_flash_ctl00_params,
	        ctl00_ContentPlaceHolder1_flash_ctl00_atts
	    );
     };
     //]]>
</script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="contentTop" Runat="Server">
    
    <div id="top" style="position:relative" class="videoHolder">
        
        
        <div id="systemFlashPanels" class="scroll-pane" style="position:relative; width:960px; height:362px">

            <div id="flashContainer">  
               <%--<acms:FlashControl ID="VideoCarousel" Width="960" Height="362" runat="server" FlashFileUrl="~/Flash/VideoCarousel.swf" WMode="Opaque" />--%>
            </div>
            
            <div id="videoInfoHolder" >
                <acms:SimpleRepeater ID="dlFeed" DataSourceID="dsList" AllowPaging="false" runat="server">
                    <ItemTemplate>
                        <acms:SubTemplateLoader ID="loader" TemplateFileName="Display" DevTemplatePaths="~/Templates/SubTemplates/VideoMov/Display.ascx" runat="server" />
                        
                        
                    </ItemTemplate>
                </acms:SimpleRepeater>
            <acms:PostDataSource ID="dsList" runat="server" />
            
            </div>            
        </div>
        <%--<a class="prev browse left">---</a><a class="next browse right">|||</a>--%>

        <%--<div id="subNav" style="" class="clearfix">
            <ul id="navApplications">
                <li class="active" ><a href="#" class="navApplication ">Specifications</a></li>
                <li ><a href="#" class="navApplication ">Payload</a></li>
                <li ><a href="#" class="navApplication ">Ground Stations</a></li>
            </ul>
            
            <ul id="navDetails">
                <acms:SimpleRepeater ID="dlNavSiblings" DataSourceID="dsSibling" AllowPaging="false" runat="server">
                    <ItemTemplate>
                        <li runat="server" id="navLi" >
                            <asp:HyperLink ID="lnkNavSibling" CssClass="" NavigateUrl="#" runat="server" />
                        </li>
                    </ItemTemplate>
                </acms:SimpleRepeater>
                <acms:PostDataSource ID="dsSibling" runat="server" />
                <li><a href="#" class="">Video</a></li>
                <li><a href="#" class="">Support</a></li>
                <li><a href="#" class="">Brochure</a></li>
            </ul>
            
        </div>--%>
         <div id="subNav" style="" class="clearfix">
            <ul id="navApplications">
                <acms:SimpleRepeater ID="dlNavSiblings" DataSourceID="dsSibling" AllowPaging="false" runat="server">
                    <ItemTemplate>
                            <li runat="server" id="navLi" class="sibling" >
                                <asp:HyperLink ID="lnkNav" CssClass="navApplication" NavigateUrl="#" runat="server" />
                            </li>
                        </ItemTemplate>
                    </acms:SimpleRepeater>
            </ul>
            
            
            <ul id="navDetails">
               
            </ul>
        </div>
        <acms:PostDataSource ID="dsSibling" runat="server" />
        <div id="pageTitle" class="clearfix">
            <h1><acms:PostDisplayName ID="PostDisplayName" runat="server" /></h1>
            
        </div>
    
    </div>
    <%--<div id="VideoPlayerWrapper">
        <div id="VideoPlayer" style="position:relative;width:800px; height:534px">&nbsp;
        </div>
    </div>--%>
   

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentBase" Runat="Server">
    

</asp:Content>

